home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / tclib20.zip / COLOR.H < prev    next >
C/C++ Source or Header  |  1988-12-03  |  1KB  |  41 lines

  1. /* TCHK 2.0 - Howard Kapustein's Turbo C library       12-3-88 */
  2. /* Copyright (C) 1988, Howard Kapustein.  All rights reserved. */
  3.  
  4. /* color.h  -  header file containing color definitions */
  5.  
  6. /* These colors are intended to complement the list in CONIO.H. Make sure
  7.    you include <conio.h> as well as <color.h> in your program               */
  8.  
  9. #ifndef COLOR_HEADER
  10. #define COLOR_HEADER    1
  11.  
  12. #define DWHITE      0x7      /* Dark White (conio.h lists this as LIGHTGRAY) */
  13. #define LBLACK      0x8      /* HEX 8-F: highlighted colors */
  14. #define LBLUE       0x9
  15. #define LGREEN      0xA
  16. #define LCYAN       0xB
  17. #define LRED        0xC
  18. #define LMAGENTA    0xD
  19. #define LBROWN      0xE
  20. #define LWHITE      0xF
  21.  
  22. #define B_BLACK       0x00        /* HEX 10-70: background colors */
  23. #define B_BLUE        0x10
  24. #define B_GREEN       0x20
  25. #define B_CYAN        0x30
  26. #define B_RED         0x40
  27. #define B_MAGENTA     0x50
  28. #define B_BROWN       0x60
  29. #define B_WHITE       0x70
  30.  
  31. #define BOLD          0x8         /* bold (highlight) color */
  32. #define INVERSE       0x70        /* inverse video (black on white) */
  33. #define REVERSE       0x70
  34. #define NORMAL        0x7         /* white on black */
  35. #define UNDERLINE     0x1         /* Underline (mono only) */
  36.  
  37. #define maskforeground  0x0F      /* bit mask to get foreground */
  38. #define maskbackground  0x70      /* bit mask to get background */
  39.  
  40. #endif              /* COLOR_HEADER */
  41.